package com.alex;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.InputStream;
import java.util.Properties;

public class DemoConfigApplication {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:spring.xml");

        // Properties dbConfig = ctx.getBean("dbConfig", Properties.class);
        // System.out.println(dbConfig.getProperty("driver"));

    }

    @Value("${alex.name}")
    private String name;


}
